package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 t_product_cart
 *
 * @author tanfp
 * @date 2021-01-04
 */
public class ProductCart extends BaseEntity
{
    private static final long serialVersionUID=1L;

    /** id */
    @Excel(name = "id")
    private Long keyId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 添加的数量 */
    @Excel(name = "添加的数量")
    private Integer addNum;

    /** 价格表的keyId */
    @Excel(name = "价格表的keyId")
    private Long priceId;

    /** 是否选中,0未选中，1选中 */
    @Excel(name = "是否选中,0未选中，1选中")
    private Integer cartSelectStatus;

    /** 0未删除 1已删除 */
    @Excel(name = "0未删除 1已删除")
    private Integer delStatus;

    public void setKeyId(Long keyId)
    {
        this.keyId = keyId;
    }

    public Long getKeyId()
    {
        return keyId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setAddNum(Integer addNum)
    {
        this.addNum = addNum;
    }

    public Integer getAddNum()
    {
        return addNum;
    }
    public void setPriceId(Long priceId)
    {
        this.priceId = priceId;
    }

    public Long getPriceId()
    {
        return priceId;
    }
    public void setCartSelectStatus(Integer cartSelectStatus)
    {
        this.cartSelectStatus = cartSelectStatus;
    }

    public Integer getCartSelectStatus()
    {
        return cartSelectStatus;
    }
    public void setDelStatus(Integer delStatus)
    {
        this.delStatus = delStatus;
    }

    public Integer getDelStatus()
    {
        return delStatus;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("keyId",getKeyId())
                .append("userId",getUserId())
                .append("productId",getProductId())
                .append("addNum",getAddNum())
                .append("priceId",getPriceId())
                .append("cartSelectStatus",getCartSelectStatus())
                .append("createTime",getCreateTime())
                .append("createBy",getCreateBy())
                .append("updateTime",getUpdateTime())
                .append("updateBy",getUpdateBy())
                .append("delStatus",getDelStatus())
                .toString();
    }
}